home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipnss / nsISSLStatus.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  128 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISSLStatus.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISSLStatus_h__
  6. #define __gen_nsISSLStatus_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIX509Cert; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsISSLStatus */
  21. #define NS_ISSLSTATUS_IID_STR "7b2ca1ca-1dd2-11b2-87ec-d217dbe22b85"
  22.  
  23. #define NS_ISSLSTATUS_IID \
  24.   {0x7b2ca1ca, 0x1dd2, 0x11b2, \
  25.     { 0x87, 0xec, 0xd2, 0x17, 0xdb, 0xe2, 0x2b, 0x85 }}
  26.  
  27. class NS_NO_VTABLE nsISSLStatus : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISSLSTATUS_IID)
  31.  
  32.   /* readonly attribute nsIX509Cert serverCert; */
  33.   NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) = 0;
  34.  
  35.   /* readonly attribute string cipherName; */
  36.   NS_IMETHOD GetCipherName(char * *aCipherName) = 0;
  37.  
  38.   /* readonly attribute unsigned long keyLength; */
  39.   NS_IMETHOD GetKeyLength(PRUint32 *aKeyLength) = 0;
  40.  
  41.   /* readonly attribute unsigned long secretKeyLength; */
  42.   NS_IMETHOD GetSecretKeyLength(PRUint32 *aSecretKeyLength) = 0;
  43.  
  44. };
  45.  
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSISSLSTATUS \
  48.   NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert); \
  49.   NS_IMETHOD GetCipherName(char * *aCipherName); \
  50.   NS_IMETHOD GetKeyLength(PRUint32 *aKeyLength); \
  51.   NS_IMETHOD GetSecretKeyLength(PRUint32 *aSecretKeyLength); 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSISSLSTATUS(_to) \
  55.   NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) { return _to GetServerCert(aServerCert); } \
  56.   NS_IMETHOD GetCipherName(char * *aCipherName) { return _to GetCipherName(aCipherName); } \
  57.   NS_IMETHOD GetKeyLength(PRUint32 *aKeyLength) { return _to GetKeyLength(aKeyLength); } \
  58.   NS_IMETHOD GetSecretKeyLength(PRUint32 *aSecretKeyLength) { return _to GetSecretKeyLength(aSecretKeyLength); } 
  59.  
  60. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  61. #define NS_FORWARD_SAFE_NSISSLSTATUS(_to) \
  62.   NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerCert(aServerCert); } \
  63.   NS_IMETHOD GetCipherName(char * *aCipherName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCipherName(aCipherName); } \
  64.   NS_IMETHOD GetKeyLength(PRUint32 *aKeyLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyLength(aKeyLength); } \
  65.   NS_IMETHOD GetSecretKeyLength(PRUint32 *aSecretKeyLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecretKeyLength(aSecretKeyLength); } 
  66.  
  67. #if 0
  68. /* Use the code below as a template for the implementation class for this interface. */
  69.  
  70. /* Header file */
  71. class nsSSLStatus : public nsISSLStatus
  72. {
  73. public:
  74.   NS_DECL_ISUPPORTS
  75.   NS_DECL_NSISSLSTATUS
  76.  
  77.   nsSSLStatus();
  78.  
  79. private:
  80.   ~nsSSLStatus();
  81.  
  82. protected:
  83.   /* additional members */
  84. };
  85.  
  86. /* Implementation file */
  87. NS_IMPL_ISUPPORTS1(nsSSLStatus, nsISSLStatus)
  88.  
  89. nsSSLStatus::nsSSLStatus()
  90. {
  91.   /* member initializers and constructor code */
  92. }
  93.  
  94. nsSSLStatus::~nsSSLStatus()
  95. {
  96.   /* destructor code */
  97. }
  98.  
  99. /* readonly attribute nsIX509Cert serverCert; */
  100. NS_IMETHODIMP nsSSLStatus::GetServerCert(nsIX509Cert * *aServerCert)
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104.  
  105. /* readonly attribute string cipherName; */
  106. NS_IMETHODIMP nsSSLStatus::GetCipherName(char * *aCipherName)
  107. {
  108.     return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110.  
  111. /* readonly attribute unsigned long keyLength; */
  112. NS_IMETHODIMP nsSSLStatus::GetKeyLength(PRUint32 *aKeyLength)
  113. {
  114.     return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116.  
  117. /* readonly attribute unsigned long secretKeyLength; */
  118. NS_IMETHODIMP nsSSLStatus::GetSecretKeyLength(PRUint32 *aSecretKeyLength)
  119. {
  120.     return NS_ERROR_NOT_IMPLEMENTED;
  121. }
  122.  
  123. /* End of implementation class template. */
  124. #endif
  125.  
  126.  
  127. #endif /* __gen_nsISSLStatus_h__ */
  128.